<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
	<title>TinyBrowser :: {$tb_browse}</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	{if !$standalone and $tinybrowser.integration eq "tinymce"}
		<script language="javascript" type="text/javascript" src="{$default_admin_theme_url}/js/tiny_mce/tiny_mce_popup.js"></script>
	{else}
		<link rel="stylesheet" type="text/css" media="all" href="{$default_admin_theme_url}/modules/filebrowser/css/stylefull_tinybrowser.css" />
	{/if}
	<link rel="stylesheet" type="text/css" media="all" href="{url}/filebrowser/admin/css{/url}" />
	<script language="javascript" type="text/javascript" src="{url}/filebrowser/admin/js/?{$passfeid1}{/url}"></script>
</head>
<body{$rowhlightinit}>
	{include file=file:$admin_theme_path/modules/filebrowser/_alert.tpl}
	<div class="tabs">
		<ul>
			<li id="browse_tab" class="current">
				<span><a href="{url}/filebrowser/admin/tinybrowser/?type={$typenow}{$passfeid}{/url}">{$tb_browse}</a></span>
			</li>
			{if $tinybrowser.allowupload}
				<li id="upload_tab">
					<span><a href="{url}/filebrowser/admin/upload/?type={$typenow}{$passfeid}{/url}">{$tb_upload}</a></span>
				</li>
			{/if}
			{if $tinybrowser.allowedit or $tinybrowser.allowdelete}
				<li id="edit_tab">
					<span><a href="{url}/filebrowser/admin/edit/?type={$typenow}{$passfeid}{/url}">{$tb_edit}</a></span>
				</li>
			{/if}
		</ul>
	</div>
	<div class="panel_wrapper">
		<div id="general_panel" class="panel currentmod">
			<fieldset>
				<legend>{$tb_browsefiles}</legend>
				<form name="browse" class="custom" method="post" action="{url}{$main_form_action}{/url}">
					<div class="pushleft">
						{if $typenow eq "image" or $typenow eq "bg_image" or $typenow eq "bg_image_thumb" or $typenow eq "cat_thumb"}
							<label for="viewtype">{$tb_view}</label>
							<select name="viewtype" onchange="this.form.submit();">
								<option value="thumb"{if $viewtypenow eq "thumb"} selected="selected"{/if}>{$tb_thumbs}</option>
								<option value="detail"{if $viewtypenow eq "detail"} selected="selected"{/if}>{$tb_details}</option>
							</select>
						{/if}
						{if $tinybrowser.pagination gt 0}
							{if count($pagelabels) gt 2}
								<label for="showpage">{$tb_show}</label>
								<select name="showpage" onchange="this.form.submit();">
									{foreach from=$pagelabels item=i key=index}
										<option value="{$i}"{if $showpagenow eq $i} selected{/if}>{$tb_page} {$i}</option>
									{/foreach}
								</select>
							{/if}
						{/if}
					</div>
					<div class="pushright">
						<input type="hidden" name="sortby" value="{$sortbynow}" />
						<input type="hidden" name="sorttype" value="{$sorttypenow}" />
						<input type="text" name="find" size="25" maxlength="50" value="{$findnow}" />
						<button type="submit" name="search">{$tb_search}</button>
					</div>
				</form>
				<div class="tabularwrapper">
					<table class="browse">
						<tr>
							<th><a href="?type={$typenow}{$passfeid}{$sortbyget.name}"{$thclass.name}>{$tb_filename}</a></th>
							<th><a href="?type={$typenow}{$passfeid}{$sortbyget.size}"{$thclass.size}>{$tb_size}</a></th>
							{if $typenow eq "image" or $typenow eq "bg_image" or $typenow eq "bg_image_thumb" or $typenow eq "cat_thumb"}
								<th><a href="?type={$typenow}{$passfeid}{$sortbyget.dimensions}"{$thclass.dimensions}>{$tb_dimensions}</a></th>
							{/if}
							<th><a href="?type={$typenow}{$passfeid}{$sortbyget.type}"{$thclass.type}>{$tb_type}</a></th>
							<th><a href="?type={$typenow}{$passfeid}{$sortbyget.modified}"{$thclass.modified}>{$tb_date}</a></th>
						</tr>

					{$browser_table}

			</fieldset>
		</div>
	</div>
	<form name="passform"><input name="fileurl" type="hidden" value="" /></form>
</body>
</html>
